﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="goodsCard.aspx.cs" Inherits="WebSite.admin.product.goodsCard" %>



<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <link href="../css/skin.css" rel="stylesheet" type="text/css" />
     <style>
     #ext-comp-1002
     {
         margin-top:-20px;
         }
    </style>
</head>
<body>
    <form id="form1" runat="server" >
    <ext:PageManager ID="PageManager1" runat="server" />
      <ext:SimpleForm ID="extForm1" runat="server" BodyPadding="5px"   
            EnableBackgroundColor="false" Title="商品卡片"  ShowHeader="true" >
              <Items>

 
        <ext:Panel ID="Panel3" ShowHeader="false" CssClass="x-form-item"  ShowBorder="false" Layout="Column" runat="server">
             <Items>
                  <ext:Label ID="lblCardCarod"     runat="server" Text="卡号："></ext:Label>
             <ext:TextBox runat="server" ID="txtCardCode" Label="卡号" MaxLength="20"></ext:TextBox>
                <ext:Button ID="btnSearch" Text="搜索"  CssClass="mleft mright" runat="server" 
                     OnClick="btnSearch_Click"></ext:Button>
          </Items>
        </ext:Panel>
     </Items>
     
   </ext:SimpleForm>

   <ext:Panel ID="Panel8" ShowBorder="True" ShowHeader="false" BoxFlex="1"  CssClass="x-form-item"  Layout="Fit"
                runat="server">
                <Toolbars>
                    <ext:Toolbar ID="Toolbar2" runat="server">
                        <Items>
                   <ext:Button ID="btnEnable" runat="server" Text="批量开启"   OnClick="btnEnable_Click"
                    ConfirmTarget="self" ConfirmText="确定要开启选中的礼品卡吗？"  >
                 </ext:Button>
                  <ext:ToolbarSeparator ID="ToolbarSeparator1" runat="server">
                            </ext:ToolbarSeparator>
                     <ext:Button ID="btnDisable" runat="server" Text="批量禁用"  OnClick="btnDisable_Click"
                              ConfirmTarget="self" ConfirmText="确定要禁用选中的礼品卡吗？">
                     </ext:Button>

                     <ext:ToolbarSeparator ID="ToolbarSeparator2" runat="server">
                            </ext:ToolbarSeparator>
                     <ext:Button ID="btnDeleted" runat="server" Text="批量删除"   OnClick="btnDeleted_Click"
                              ConfirmTarget="self" ConfirmText="确定要删除选中的礼品卡吗？" >
                     </ext:Button>

                          <ext:ToolbarSeparator ID="ToolbarSeparator3" runat="server"></ext:ToolbarSeparator>
                     <ext:Label ID="Label4"  Width="100px"    runat="server" Text="&nbsp;&nbsp;浏览导入的文件："></ext:Label>
                    <ext:FileUpload ID="fuInput" runat="server" Width="300px" Label="选择导入的文件" ></ext:FileUpload>
                    <ext:Button ID="btnInputCard" runat="server" Text="导入"  OnClick="btnInputCard_Click"  ConfirmTarget="self" ></ext:Button>
                        </Items>
                    </ext:Toolbar>
                </Toolbars>
                <Items>
    </Items>
    </ext:Panel>
         <ext:Grid ID="Grid1" Title="查询结果" PageSize="50" ShowBorder="false"  CssClass="x-form-item"  Height="380px"  AllowPaging="true" SortColumn="cardCode" SortDirection="ASC"     
                        OnPageIndexChange="Grid1_PageIndexChange" ShowHeader="False" runat="server" EnableCheckBoxSelect="True"   AllowSorting="true"    IsDatabasePaging="true" 
                        DataKeyNames="id" OnSort="Grid1_Sort" EnableRowNumber="True">

        <Columns>
        
            <ext:BoundField Width="100px" ColumnID="cardCode" SortField="cardCode" DataField="cardCode" DataFormatString="{0}"
                HeaderText="卡 号" />
              <ext:CheckBoxField Width="60px" RenderAsStaticField="true"  SortField="enable" DataField="enable" HeaderText="开启" />
              <ext:CheckBoxField Width="60px" RenderAsStaticField="true" SortField="isSend" DataField="isSend" HeaderText="是否已发" />
               <ext:BoundField Width="100px" ColumnID="orderCode" SortField="orderCode" DataField="orderCode" DataFormatString="{0}"
                HeaderText="订单编号" />
             <ext:BoundField Width="100px" ColumnID="mobile" SortField="mobile" DataField="mobile" DataFormatString="{0}"
                HeaderText="收卡人手机" />
             <ext:BoundField Width="100px" ColumnID="Email" SortField="Email" DataField="Email" DataFormatString="{0}"
                HeaderText="收卡人Email" />
             <ext:BoundField Width="300px" ColumnID="messageRemark" SortField="messageRemark" DataField="messageRemark" DataFormatString="{0}"
                HeaderText="消息备注" />
               <ext:BoundField Width="140px" ColumnID="exptime" SortField="exptime" DataField="exptime" DataFormatString="{0}"
                HeaderText="发卡时间" />
              <ext:BoundField Width="140px" ColumnID="addTime" SortField="addTime" DataField="addTime" DataFormatString="{0}"
                HeaderText="添加时间" />
        </Columns>
    </ext:Grid>


    </form>
</body>
</html>
